<?php
    include 'base.php';

    $id = $_GET['id'];

    $sql = "SELECT * FROM `goods` WHERE `goods_id`=$id";

    $res = $conn->query($sql);

    $row = mysqli_fetch_assoc($res);

    echo json_encode($row);
?>